const state = {
    //定义2个state变量
    nm :window.localStorage.getItem('nowNm') || '广西',
    id:window.localStorage.getItem('nowId') || 1
};

const actions = {};

const mutations = {
    CITY_INFO(state,payload){
        state.nm = payload.nm
        state.id = payload.id
    }
};

//导出并且给予一个命名空间
export default {
  namespaced: true,
  state,
  actions,
  mutations,
};
